# coding=utf-8
__author__ = 'good'

from flask import Blueprint
from . import page

user = Blueprint('user', __name__, url_prefix='/user')

user.add_url_rule('/login', view_func=page.login, methods=['GET', 'POST'])
user.add_url_rule('/logout', view_func=page.logout)
user.add_url_rule('/register', view_func=page.register, methods=['GET', 'POST'])
user.add_url_rule('/edit', view_func=page.usereditinfo, methods=['GET', 'POST'])
user.add_url_rule('/pwd', view_func=page.userchangepwd, methods=['GET', 'POST'])
